WP_Defender\Component\IP\Global_IP B

Total Complexity 86
Dependencies 5
Dependents 7
Total lines 527
Lines of code 294
Logical lines of code 134
Comment lines 125
Methods 24
Properties 5

Methods 24

Method Rating Maintainability Complexity Lines of code
set_global_ip_list()
A
43 13 52
fetch_global_ip_list()
A
46 11 43
get_formated_global_ip_list()
A
52 10 23
is_show_dashboard_notice()
A
53 9 23
remove_from_blocklist()
A
46 7 40
add_to_global_ip_list()
S
49 6 32
format_number()
S
59 6 14
can_blocklist_autosync()
S
71 4 6
can_central_ip_autosync()
S
74 3 5
init()
S
69 2 6
is_active()
S
79 2 3
get_global_ip_list()
S
80 1 3
is_blocklist_autosync_enabled()
S
82 1 3
is_global_ip_enabled()
S
82 1 3
fetch_global_ip_list_updated_time()
S
67 1 9
is_ip_blocked()
S
79 1 3
get_dashboard_notice_reminder()
S
79 1 3
delete_dashboard_notice_reminder()
S
81 1 3
is_ip_allowed()
S
79 1 3
block_list()
S
82 1 3
allow_list()
S
82 1 3
set_last_synced()
S
79 1 3
get_last_synced()
S
79 1 3
__construct()
S
73 1 5